home *** CD-ROM | disk | FTP | other *** search
/ The Scorpion King Cardz / The Scorpion King Cardz - Disc 1 - Mathays.iso / pc / assets / goodbye.dxr / 00012_quit.ls < prev    next >
Encoding:
Text File  |  2002-03-26  |  703 b   |  24 lines

  1. global gOrigScreenDisplay, gOrigMasterMute, gOrigMasterVolume, gOrigWaveMute, gOrigWaveVolume
  2.  
  3. on exitFrame me
  4.   if (the environment).runMode = "Projector" then
  5.     if (gOrigScreenDisplay = dosGetDisplay()) and (gOrigMasterMute = dosGetVolume("Master Out Mute")) and (gOrigMasterVolume = dosGetVolume("Master Out Volume")) then
  6.       if the platform contains "win" then
  7.         if (gOrigWaveMute = dosGetVolume("Wave Out Mute")) and (gOrigWaveVolume = dosGetVolume("Wave Out Volume")) then
  8.           quit()
  9.         end if
  10.       else
  11.         quit()
  12.       end if
  13.     else
  14.       if the timer < 200 then
  15.         go(the frame)
  16.       else
  17.         quit()
  18.       end if
  19.     end if
  20.   else
  21.     quit()
  22.   end if
  23. end
  24.